package top.linuyx.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.Date;
import java.io.Serializable;

/**
 * @Author Linuyx
 * @Description commodity_attributes表
 * @Date Created in 2021-04-07 22:12
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@TableName("commodity_attributes")
public class CommodityAttributesEntity extends BaseEntity implements Serializable {

    /**
     * 商品颜色
     */
    private String color;

    /**
     * 每个商品的特有属性，以JSON格式存储
     */
    private String extendInformation;

    /**
     * 原价
     */
    private Double oldPrice;

    /**
     * 现价
     */
    private Double nowPrice;

    /**
     * 销量
     */
    private Integer sales;

    /**
     * 库存
     */
    private Integer stock;

    /**
     * 商品id
     */
    private Long commodityId;

}
